package com.palace.saw.module.app.controller.admin.article.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 文章管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ArticleRespVO {

    @Schema(description = "文章管理编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27276")
    @ExcelProperty("文章管理编号")
    private Long id;

    @Schema(description = "分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6209")
    @ExcelProperty("分类编号")
    private Long categoryId;

    @Schema(description = "关联商品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "21601")
    @ExcelProperty("关联商品编号")
    private Long spuId;

    @Schema(description = "文章标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("文章标题")
    private String title;

    @Schema(description = "文章作者")
    @ExcelProperty("文章作者")
    private String author;

    @Schema(description = "文章封面图片地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @ExcelProperty("文章封面图片地址")
    private String picUrl;

    @Schema(description = "文章简介")
    @ExcelProperty("文章简介")
    private String introduction;

    @Schema(description = "浏览次数", example = "19444")
    @ExcelProperty("浏览次数")
    private String browseCount;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "是否热门(小程序)", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否热门(小程序)")
    private Boolean recommendHot;

    @Schema(description = "是否轮播图(小程序)", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否轮播图(小程序)")
    private Boolean recommendBanner;

    @Schema(description = "文章内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("文章内容")
    private String content;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}